﻿using System;
using System.Net.Http;
using System.Threading.Tasks;

namespace TestDashboardsApi
{
    class Program
    {
        static async Task Main(string[] args)
        {
            var client = new HttpClient();
            client.DefaultRequestHeaders.Add("Authorization", "Bearer eyJrIjoiNEt6VEVJcTlTa2lhalg1RmZLZTR1MTF3dGoxTnlCbXAiLCJuIjoi5oiR55qE56ys5LiA5LiqQVBJ6ZSuIiwiaWQiOjF9");

            var response = await client.GetAsync("http://localhost:3000/d/8ELZ1an7z/app-metrics-web-monitoring-influxdb-myseconddatabase?orgId=1&refresh=5s");

            Console.WriteLine(response.Content.ReadAsStringAsync().Result);
        }
    }
}
